package com.code.softeem.lianxi.lianxi1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 11:27
 * @description
 */
public class Jingli extends Coder{
    private double jiangjin;

    public Jingli() {
    }

    public Jingli(double jiangjin) {
        this.jiangjin = jiangjin;
    }

    public Jingli(String name, String id, double gongzi, double jiangjin) {
        super(name, id, gongzi);
        this.jiangjin = jiangjin;
    }

    public double getJiangjin() {
        return jiangjin;
    }

    public void setJiangjin(double jiangjin) {
        this.jiangjin = jiangjin;
    }

    public void work(){
        System.out.println("姓名："+getName()+
                "，工号："+getId()+
                "，工资："+getGongzi()+
                "，奖金："+jiangjin);
    }
    @Override
    public String toString() {
        return "Jingli{" +
                "jiangjin=" + jiangjin +
                '}';
    }
}
